# coding: utf-8
__author__ = 'wangtao'
import math

#计算候选点

def getContent__computePointsForCandidate__do(_ratio_remaining, _power, _ratio, _points_history):

    _points_remaining = _points_history[0] * _ratio_remaining   # 点剩余
    _points_to_compute = _points_history[0] * _points_remaining # 点计算

    if _ratio < 0:
        _points_return = _points_remaining
    else :
        _points_return = (0
        + _points_remaining
        + (_points_to_compute * math.pow(_ratio, _power)))

    _points_history.append(_points_return)
    return _points_history

